package com.example.model.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 
 * @TableName sponsor
 */
@TableName(value ="sponsor")
@Data
public class Sponsor implements Serializable {
    /**
     * 雇主ID
     */
    @TableId
    private Long sponsorId;

    /**
     * 雇主地址
     */
    private String sponsorAddress;

    /**
     * 雇主名字
     */
    private String sponsorName;

    /**
     * 雇主类型 0-企业 1-个体工商户 2-事业单位 3-政府机构
     */
    private Integer sponsorType;

    /**
     * 统一社会信用代码
     */
    private String unifiedSocialCreditCode;

    /**
     * 法定代表人
     */
    private String legalRepresentative;

    /**
     * 注册资本(万元)
     */
    private BigDecimal registeredCapital;

    /**
     * 所属行业
     */
    private String industry;

    /**
     * 所在省份
     */
    private String province;

    /**
     * 所在城市
     */
    private String city;

    /**
     * 所在区县
     */
    private String district;

    /**
     * 详细地址
     */
    private String addressDetail;

    /**
     * 联系人
     */
    private String contactPerson;

    /**
     * 联系电话
     */
    private String contactPhone;

    /**
     * 联系邮箱
     */
    private String contactEmail;

    /**
     * 员工人数
     */
    private Integer employeeCount;

    /**
     * 成立日期
     */
    private Date establishmentDate;

    /**
     * 经营范围
     */
    private String businessScope;

    /**
     * 公司网站
     */
    private String companyWebsite;

    /**
     * 密钥
     */
    private String signSecurity;

    /**
     * 状态 0-禁用 1-启用
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Sponsor other = (Sponsor) that;
        return (this.getSponsorId() == null ? other.getSponsorId() == null : this.getSponsorId().equals(other.getSponsorId()))
            && (this.getSponsorAddress() == null ? other.getSponsorAddress() == null : this.getSponsorAddress().equals(other.getSponsorAddress()))
            && (this.getSponsorName() == null ? other.getSponsorName() == null : this.getSponsorName().equals(other.getSponsorName()))
            && (this.getSponsorType() == null ? other.getSponsorType() == null : this.getSponsorType().equals(other.getSponsorType()))
            && (this.getUnifiedSocialCreditCode() == null ? other.getUnifiedSocialCreditCode() == null : this.getUnifiedSocialCreditCode().equals(other.getUnifiedSocialCreditCode()))
            && (this.getLegalRepresentative() == null ? other.getLegalRepresentative() == null : this.getLegalRepresentative().equals(other.getLegalRepresentative()))
            && (this.getRegisteredCapital() == null ? other.getRegisteredCapital() == null : this.getRegisteredCapital().equals(other.getRegisteredCapital()))
            && (this.getIndustry() == null ? other.getIndustry() == null : this.getIndustry().equals(other.getIndustry()))
            && (this.getProvince() == null ? other.getProvince() == null : this.getProvince().equals(other.getProvince()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getDistrict() == null ? other.getDistrict() == null : this.getDistrict().equals(other.getDistrict()))
            && (this.getAddressDetail() == null ? other.getAddressDetail() == null : this.getAddressDetail().equals(other.getAddressDetail()))
            && (this.getContactPerson() == null ? other.getContactPerson() == null : this.getContactPerson().equals(other.getContactPerson()))
            && (this.getContactPhone() == null ? other.getContactPhone() == null : this.getContactPhone().equals(other.getContactPhone()))
            && (this.getContactEmail() == null ? other.getContactEmail() == null : this.getContactEmail().equals(other.getContactEmail()))
            && (this.getEmployeeCount() == null ? other.getEmployeeCount() == null : this.getEmployeeCount().equals(other.getEmployeeCount()))
            && (this.getEstablishmentDate() == null ? other.getEstablishmentDate() == null : this.getEstablishmentDate().equals(other.getEstablishmentDate()))
            && (this.getBusinessScope() == null ? other.getBusinessScope() == null : this.getBusinessScope().equals(other.getBusinessScope()))
            && (this.getCompanyWebsite() == null ? other.getCompanyWebsite() == null : this.getCompanyWebsite().equals(other.getCompanyWebsite()))
            && (this.getSignSecurity() == null ? other.getSignSecurity() == null : this.getSignSecurity().equals(other.getSignSecurity()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSponsorId() == null) ? 0 : getSponsorId().hashCode());
        result = prime * result + ((getSponsorAddress() == null) ? 0 : getSponsorAddress().hashCode());
        result = prime * result + ((getSponsorName() == null) ? 0 : getSponsorName().hashCode());
        result = prime * result + ((getSponsorType() == null) ? 0 : getSponsorType().hashCode());
        result = prime * result + ((getUnifiedSocialCreditCode() == null) ? 0 : getUnifiedSocialCreditCode().hashCode());
        result = prime * result + ((getLegalRepresentative() == null) ? 0 : getLegalRepresentative().hashCode());
        result = prime * result + ((getRegisteredCapital() == null) ? 0 : getRegisteredCapital().hashCode());
        result = prime * result + ((getIndustry() == null) ? 0 : getIndustry().hashCode());
        result = prime * result + ((getProvince() == null) ? 0 : getProvince().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getDistrict() == null) ? 0 : getDistrict().hashCode());
        result = prime * result + ((getAddressDetail() == null) ? 0 : getAddressDetail().hashCode());
        result = prime * result + ((getContactPerson() == null) ? 0 : getContactPerson().hashCode());
        result = prime * result + ((getContactPhone() == null) ? 0 : getContactPhone().hashCode());
        result = prime * result + ((getContactEmail() == null) ? 0 : getContactEmail().hashCode());
        result = prime * result + ((getEmployeeCount() == null) ? 0 : getEmployeeCount().hashCode());
        result = prime * result + ((getEstablishmentDate() == null) ? 0 : getEstablishmentDate().hashCode());
        result = prime * result + ((getBusinessScope() == null) ? 0 : getBusinessScope().hashCode());
        result = prime * result + ((getCompanyWebsite() == null) ? 0 : getCompanyWebsite().hashCode());
        result = prime * result + ((getSignSecurity() == null) ? 0 : getSignSecurity().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sponsorId=").append(sponsorId);
        sb.append(", sponsorAddress=").append(sponsorAddress);
        sb.append(", sponsorName=").append(sponsorName);
        sb.append(", sponsorType=").append(sponsorType);
        sb.append(", unifiedSocialCreditCode=").append(unifiedSocialCreditCode);
        sb.append(", legalRepresentative=").append(legalRepresentative);
        sb.append(", registeredCapital=").append(registeredCapital);
        sb.append(", industry=").append(industry);
        sb.append(", province=").append(province);
        sb.append(", city=").append(city);
        sb.append(", district=").append(district);
        sb.append(", addressDetail=").append(addressDetail);
        sb.append(", contactPerson=").append(contactPerson);
        sb.append(", contactPhone=").append(contactPhone);
        sb.append(", contactEmail=").append(contactEmail);
        sb.append(", employeeCount=").append(employeeCount);
        sb.append(", establishmentDate=").append(establishmentDate);
        sb.append(", businessScope=").append(businessScope);
        sb.append(", companyWebsite=").append(companyWebsite);
        sb.append(", signSecurity=").append(signSecurity);
        sb.append(", status=").append(status);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}